package elitech.vietnam.myfashion.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import elitech.vietnam.myfashion.R;

public class WarningDialog extends Dialog implements OnClickListener {
	private Dialog mDialog;
	private TextView mTxtWarn;
	private Button mBtnOk;
	public WarningDialog(Context context, String text) {
		super(context, R.style.Dialog);
		this.mDialog = this;
		setContentView(R.layout.warningdialog);
		mTxtWarn = (TextView) findViewById(R.id.warn_txtWarn);
		mBtnOk = (Button) findViewById(R.id.warn_btnOk);
		mTxtWarn.setText(text);
		mBtnOk.setOnClickListener(this);
	}
	
	@Override
	public void onClick(View v) {
		mDialog.dismiss();
	}

}
